        <div class="span10">
          <div class="row-fluid">
            <div class="span12 box">
                <div class="box-head">
                    <h3><i class="icon-white icon-check" style="margin-top: 7px;"></i> 成功订单</h3>
                </div>
                <div class="box-content">
                    <div class="content-inner">
                    	<table class="table table-bordered " id="datatable">
                          <thead>
                              <tr>
                              	<th>订单编号</th>
                                <th>创建日期</th>
                                <th>运单号</th>
                                <th>收货地址</th>
                                <th>收货人</th>
                                <th>收货电话</th>
                                <th>状态</th>
                                <th>底单申请</th>
                              </tr>
                            </thead>
                            <tbody>
                            <?php foreach ($orderData as $k=>$v):?>
                            <?php foreach($v['info'] as $i=>$j):;?>
                              <tr>
                              <?php if($i == 0){ ?>
                              	<td rowspan="<?php echo count($v['info']); ?>"><?php echo $v['order_id'];?></td>
                                <td rowspan="<?php echo count($v['info']); ?>"><?php echo date('Y-m-d H:i:s',$v['crea_time']);?></td>
                                <?php } ?>
                                <td><?php echo ($j['post_number']==0)?'--':$j['post_number'];?></td>
                                <td><?php echo $j['post_address'];?></td>
                                <td><?php echo $j['post_name'];?></td>
                                <td><?php echo $j['post_tel'];?></td>
                                <?php
                                switch ($v['static'])
                                {
                                	case 0:
                                		echo '<span class="label label-warning">未付款</span>';
                                		break;
                                	case 1:
                                		echo '<span class="label label-info">等待确认</span>';
                                		break;
                                	case 2:
                                		switch($j['post_static'])
                                		{
                                			case 0;
                                			echo '<td><span class="label label-warning">等待确认</span></td>';
                                			break;
                                			case 1:
                                			echo '<td><span class="label label-success">已完成</span></td>';
                                			break;
                                			case 2:
                                			echo '<td><span class="label label-info">申请底单中</span></td>';
                                			break;
                                		}
                                		//echo '<span class="label label-success">已完成</span>';
                                		break;
                                }
                                ?>
                                <td>
                                <div class="btn-group"><button title="底单申请" class="btn" onClick="window.location.href='<?php echo site_url('member/order_center/getBill?rid='.$j['id']); ?>'" rel="tooltip" <?php echo ($j['post_static'] == 2)?'disabled':''; ?>><i class="icon-picture"></i></button></div>
                                </td>
                              </tr>
                              <?php endforeach;?>
                              <?php endforeach;?>
                            </tbody>
                          </table>
                         <style>
                         .page{height:30px;}
                         .btn-group{float:left;}
                         </style>
                        <div class="page">
	                       	<?php echo $page;?>
                        </div>
                    </div><!-- content-inner -->
                </div>
            </div>
          </div> <!-- end row -->

        </div><!--/span-->
      </div><!--/row-->